home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 2 / MacMania 2.toast / Demo's / Tools&Utilities / Programming / QT MovieToolBox / other QT code not used yet / QuickDraw Movies Library.h < prev   
Encoding:
C/C++ Source or Header  |  1992-11-17  |  1.5 KB  |  70 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        QuickDraw Movies Library.h
  3.  
  4.     Copyright:    © 1991 by Apple Computer, Inc., all rights reserved.
  5.  
  6.     Change History (most recent first):
  7.  
  8.         <1+>    11/26/91    dvb        Use the DSG versions of quicktime includes.
  9.          <1>      8/7/91    dvb        first checked in
  10.  
  11.     To Do:
  12. */
  13.  
  14. /*
  15.  * file: QuickDraw Movies Library.h
  16.  *
  17.  * started 18 April 1991
  18.  * david van brink
  19.  *
  20.  * Some routines to make it a snap! to make qd movies.
  21.  *
  22.  */
  23.  
  24.  
  25. #ifndef _QuickDrawMoviesLibrary_
  26. #define _QuickDrawMoviesLibrary_
  27.  
  28. #include <Movies.h>
  29. #include <ImageCompression.h>
  30.  
  31. /*-----------------------------
  32.     Structures
  33. -----------------------------*/
  34.  
  35. typedef struct
  36.     {
  37.     long videoTag;
  38.     long compressionType;
  39.     CodecQ compressionQuality;
  40.     CodecQ temporalQuality;
  41.     long keyFrameRate;
  42.     long sequenceID;
  43.     ImageDescription **imageDescriptionH;
  44.  
  45.     Movie movie;
  46.     Track track;
  47.     Media media;
  48.  
  49.     short resourceRefNum;
  50.     FSSpec movieDataSpec;
  51.     GWorldPtr gWorldPtr;
  52.     PixMapHandle pixMapH;    /* constructed replica of viewDevice */
  53.     GWorldPtr previousGWorld;
  54.     PixMapHandle previousPixMapH;
  55.     Handle compressedFrameBitsH;        /* a buffer to compress into */
  56.     Rect sourceRect;
  57.     long time;
  58.     } MovieRecorder;
  59.  
  60. /*-----------------------------
  61.     Routines
  62. -----------------------------*/
  63.  
  64. void InitializeMovieRecorder(MovieRecorder *mr,GWorldPtr gw,unsigned char *fileName,long frameRate,
  65.         long compressionType,long compressionQuality);
  66. void AddMovieRecorderFrame(MovieRecorder *);
  67. void TerminateMovieRecorder(MovieRecorder *);
  68.  
  69. #endif _QuickDrawMoviesLibrary_
  70.